use sea_orm::DbErr;

pub type Result<T> = std::result::Result<T, Error>;

#[derive(Debug)]
pub enum Error {
    DbErr(DbErr),
    UnknownColumn(String),
}

impl From<DbErr> for Error {
    fn from(value: DbErr) -> Self {
        Self::DbErr(value)
    }
}
